<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="UpdateServlet">
  员工编号：<input type="text" th:value="${e.empno}" name="empno" readonly="readonly"><br>
  员工姓名：<input type="text" th:value="${e.ename}" name="ename"><br>
  员工工作：<input type="text" th:value="${e.job}" name="job"><br>
  员工奖金：<input type="text" th:value="${e.comm}" name="comm"><br>
  所属部门： <select name="deptno">
    <option>-请选择-</option>
    <option th:each="dept : ${depts}"
             th:text="${dept.dname}"
             th:selected="${e.dept.deptno==dept.deptno}" 
             th:value="${dept.deptno}"></option> 
  </select><br>
  <input type="submit" value="修改"> 
</form>
</body>
</html>


